<!--
 * @Author: 陈永浩(cyh1231wp@163.com)
 * @Date: 2021-03-02 18:26:10
 * @LastEditors: 陈永浩(cyh1231wp@163.com)
 * @LastEditTime: 2021-03-05 18:18:17
-->

<template>
  <div>
    <div><Button type="primary" shape="circle">一键安装</Button></div>
    <div class="step">
      <div></div>
      <div class="item flex flex-between">
        <div>
          <Icon type="md-checkmark" />
          下载脚本
        </div>
        <div>
          <span>已完成</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {
    if (this.$isElectron()) {
      this.checkEnv();
    }
  },
  methods: {
    async checkEnv() {
      const ipcRenderer = window.ipcRenderer;
      ipcRenderer.send("async", "which phala");
      ipcRenderer.on("async-reply", (event, arg) => {
        console.log(arg);
      });
      console.log(whichData);
      this.$baseMessage(whichData, "success");
    },
  },
};
</script>
<style lang="scss" scoped>
.step {
  margin-top: 20px;
  .item {
    font-size: 16px;
  }
}
</style>